﻿using System;
using System.Collections.Generic;

namespace AMS.DataAccess.Msg.BO
{
    [DBTable("TM_SendMsg")]
    public class SendMsgInfo
    {
        #region Database Column Fields
        [DBPrimaryKeyColumn("AID")]
        public int AID { get; set; }

        [DBColumn("FromID")]
        public int FromID { get; set; }

        [DBColumn("ToID")]
        public int ToID { get; set; }

        [DBColumn("ToList")]
        public string ToList { get; set; }

        [DBColumn("MsgFlag")]
        public int MsgFlag { get; set; }

        [DBColumn("IsGroupMsg")]
        public bool IsGroupMsg { get; set; }

        [DBColumn("Subject")]
        public string Subject { get; set; }

        [DBColumn("Content")]
        public string Content { get; set; }

        [DBDateTime("SendDateTime", DateTimeType.DateTime)]
        public DateTime SendDateTime { get; set; }

        #endregion

        public List<int> GroupMsgToList { get; set; }
    }
}
